﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/ConsumerMaster.master" CodeFile="searchresults.aspx.cs" Inherits="Public_Searchresults" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Consumer_ContentPlaceHolder" Runat="Server">
<div style="width:100%; background-color:#aaaadd; text-align:center;">
    <asp:Label ID="info_label" runat="server" Font-Bold="true" Font-Size="medium" Text="搜索结果"></asp:Label>
</div>
<div style="vertical-align:top; height:100%; text-align:center; overflow:scroll;width:100%;">
<asp:DataGrid id="samedish_datagrid" runat="server" SelectedItemStyle-BackColor="#99ccff"
PagerStyle-Visible="False" PageSize="20" ItemStyle-CssClass="tableItem" HeaderStyle-CssClass="tableHeader"
 HeaderStyle-BackColor="#aaaadd" BorderColor="black" BackColor="AntiqueWhite"
AutoGenerateColumns="False" ShowHeader="True" Height="100%">

<Columns>
<asp:templatecolumn headertext="序号" ItemStyle-Width="30px" >
<itemtemplate>
<%# Container.ItemIndex+1 %>
</itemtemplate>
</asp:templatecolumn>       
<asp:templatecolumn headertext="菜名" ItemStyle-Width="224px" >
<itemtemplate>
   <asp:HyperLink ID="dish_hyperlink" runat="server" Text='<%#Eval("dish_name") %>'
    NavigateUrl='<%#"~/Public/samedish-id="+Eval("dish_id")+".aspx"%>'>
   </asp:HyperLink>   
</itemtemplate>
</asp:templatecolumn>
<asp:boundcolumn ItemStyle-Width="570px" runat="server"
DataField="dish_description" HeaderText="描述" >
</asp:boundcolumn>
</Columns>
</asp:DataGrid>
</div> 
</asp:Content>

